﻿using AutoMapper;
using PeiYue.Model;
using PeiYue.Model.Dto.Purchase;
using PeiYue.Model.ERPModels;
using PeiYue.Model.Models.Purchase;
using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.AutoMapper
{
    public class PurchaseProfile : Profile
    {
        /// <summary>
        /// 配置构造函数，用来创建关系映射
        /// </summary>
        public PurchaseProfile()
        {
            CreateMap<Supplier, SupplierDTO>().ReverseMap();
            CreateMap<PageModel<Supplier>, PageModel<SupplierDTO>>();
            CreateMap<ErpPurchaseOrderDetail, ERPPurchaseDetailDTO>();
            CreateMap<ErpShouldPay, ShouldPayDTO>();
        }
    }
}
